package com.woniuxy.kaer.user;

import cn.hutool.system.UserInfo;
import com.woniuxy.kaer.commons.util.Result;
import com.woniuxy.kaer.user.dto.UserInfoDTO;
import com.woniuxy.kaer.user.form.UpdatePointForm;
import com.woniuxy.kaer.user.impl.UserInfoFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="user",fallback = UserInfoFeignClientImpl.class)
public interface UserInfoFeignClient {

    @GetMapping("/user/userInfo/selectSelf")
    public Result<UserInfoDTO> selectSelf(@RequestParam("userId") Integer userId)throws Exception;
    @PutMapping("/user/userInfo/updatePoint")
    public Result updatePoint(@RequestBody UpdatePointForm form)throws Exception;


}
